package com.hong.springboot.config;


import org.openjdk.btrace.core.BTraceUtils;
import org.openjdk.btrace.core.annotations.*;
import org.openjdk.btrace.core.types.AnyType;

import static org.openjdk.btrace.core.BTraceUtils.printArray;
import static org.openjdk.btrace.core.BTraceUtils.println;

@BTrace
public class BtraceApollo {


    @OnMethod(clazz = "com.hong.springboot.controller.IndexController", method = "index1", location = @Location(Kind.ENTRY))
    public static void getValue(@ProbeClassName String pcm, @ProbeMethodName String pmn, AnyType[] args, @Return Object retVal){
//        BTraceUtils.println("RefreshableConfig getValue...");
        printArray(args);
        println(pcm+","+pmn);
        println(BTraceUtils.str(retVal));
        println();
    }
}